import serial
comand=1
COMPORT= 2
BAUD = 38400
ser = serial.Serial(COMPORT, BAUD)
while(1):
    comand=raw_input("Funktion")
    ser.write(int(comand))
